{% extends 'base.html.twig' %}
{% block body_bar %}
    <h5>{{ dry_translation('show') }}</h5>
    <div class="ibox-tools">
        <a class="btn btn-outline btn-info" href="{{ dry_path("user_new") }}" data-route="user_new">{{ dry_translation('new') }}</a>
        <a class="btn btn-outline btn-info" href="{{ dry_path("user_edit", user.id) }}" data-route="user_edit">{{ dry_translation('edit') }}</a>
        <a class="btn btn-outline btn-info" href="{{ dry_path("user_index") }}" data-route="user_index">{{ dry_translation('list') }}</a>
    </div>
{% endblock %}
{% block body %}
    <table class="table">
        <tbody>
            <tr>
                <th style="border-top:none;">{{ dry_translation('User.id') }}</th>
                <td style="border-top:none;">{{ user.id }}</td>
            </tr>
            <tr>
                <th>{{ dry_translation('User.username') }}</th>
                <td>{{ user.username }}</td>
            </tr>
            <tr>
                <th>{{ dry_translation('User.groups') }}</th>
                <td>{{ call_method('groupShow', user.groups)|nl2br }}</td>
            </tr>
            <tr>
                <th>{{ dry_translation('User.usernameCanonical') }}</th>
                <td>{{ user.usernameCanonical }}</td>
            </tr>
            <tr>
                <th>{{ dry_translation('User.email') }}</th>
                <td>{{ user.email }}</td>
            </tr>
            <tr>
                <th>{{ dry_translation('User.emailCanonical') }}</th>
                <td>{{ user.emailCanonical }}</td>
            </tr>
            <tr>
                <th>{{ dry_translation('User.enabled') }}</th>
                <td>{{ enabledArray[user.enabled] }}</td>
            </tr>
            <tr>
                <th>{{ dry_translation('User.salt') }}</th>
                <td>{{ user.salt }}</td>
            </tr>
            <tr>
                <th>{{ dry_translation('User.lastLogin') }}</th>
                <td>{{ user.lastLoginString }}</td>
            </tr>
            <tr>
                <th>{{ dry_translation('User.locked') }}</th>
                <td>{{ user.locked }}</td>
            </tr>
            <tr>
                <th>{{ dry_translation('User.expired') }}</th>
                <td>{{ user.expired }}</td>
            </tr>
            <tr>
                <th>{{ dry_translation('User.expiresAt') }}</th>
                <td>{{ user.expiresAtString }}</td>
            </tr>
            <tr>
                <th>{{ dry_translation('User.confirmationToken') }}</th>
                <td>{{ user.confirmationToken }}</td>
            </tr>
            <tr>
                <th>{{ dry_translation('User.passwordRequestedAt') }}</th>
                <td>{{ user.passwordRequestedAtString }}</td>
            </tr>
            <tr>
                <th>{{ dry_translation('User.roles') }}</th>
                <td>{{ call_method('arrayShow', user.roles)|nl2br }}</td>
            </tr>
            <tr>
                <th>{{ dry_translation('User.credentialsExpired') }}</th>
                <td>{{ user.credentialsExpired }}</td>
            </tr>
            <tr>
                <th>{{ dry_translation('User.credentialsExpireAt') }}</th>
                <td>{{ user.credentialsExpireAtString }}</td>
            </tr>
            <tr>
                <th>{{ dry_translation('User.createdAt') }}</th>
                <td>{{ user.createdAtString }}</td>
            </tr>
        </tbody>
    </table>
{% endblock %}
